<?php
// Do not delete these lines
	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');

	if ( post_password_required() ) { ?>
		<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
	<?php
		return;
	}
?>
<div class="comment_header2">
     <div class="segoeLi"><?php comments_number( 'No Comments', '#1 Comment', '#% Comments' ); ?></div>
 </div>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>

    	<?php wp_list_comments('callback=augMetro_comment');?>
   
<?php else : // If there are no comments yet ?>
	<h2 style="color:#32A700; font-size:22px;padding-left:15px;" class="segoeLi">No comments yet</h2>
<?php endif; ?>

            
            

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
			<div class="navigation">
				<div class="alignleft"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
				<div class="alignright"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
			</div> <!-- .navigation -->
	<?php endif; // check for comment navigation ?>

<?php if ( comments_open() ) : ?>
	
    <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
<p><?php printf(__('Please <a href="%s">Login</a> '), wp_login_url( get_permalink() ) );?></p>
<?php else : ?>
<div style="padding-bottom:20px; margin-left:20px; margin-right:20px;">	
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( is_user_logged_in() ) : ?>

<p><?php printf(__('Currently logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Logout') ?>"><?php _e('Logout &raquo;'); ?></a></p>
<?php else : ?>

         <div  style="float:left;">

		<input type="text" tabindex="1" value="<?php if(esc_attr($comment_author) != '') echo esc_attr($comment_author); else echo 'Name(required)'; ?>" name="author" id="author" class="commentFormInput segoeLi clearText" >
      </div>
      <div  style="float:left;padding-left:10px;">

	  <input type="text" tabindex="2" value="<?php if(esc_attr($comment_author_email) != '') echo esc_attr($comment_author_email); else echo 'Email(required)';  ?>" name="email" id="email" class="commentFormInput segoeLi clearText">
        </div>
        <div style="float:left;padding-left:10px;">

		<input type="text" tabindex="3" value="Site" name="url" id="url"  class="commentFormInput segoeLi clearText">
        </div>
        <div class="clear"></div>
<?php endif; ?>

	<div  style="padding-top:10px;">
		<textarea tabindex="4" name="comment" id="comment" class="commentFormTextarea segoeLi clearText" ></textarea>
    </div>    
        
     <div style="padding-top:10px;"><input type="submit" value="Comment" class="messagerie_bouton_envoyer" name="submit" id="submit"></div>
		<input type="hidden" value="<?php echo $id; ?>" name="comment_post_ID">
	
<?php do_action('comment_form', $post->ID); ?>
</form>
<script type="text/javascript">
document.getElementById("comment").onkeydown = function (moz_ev){
	var ev = null;
    if (window.event){
		ev = window.event;
    }else{
		ev = moz_ev;
	}
	if (ev != null && ev.ctrlKey && ev.keyCode == 13){
	document.getElementById("submit").click();
	}
}
</script>
<?php endif; // If registration required and not logged in ?>

<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
</div>
<?php endif; ?>